﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace HighFantasy
{
    [Serializable]
    public class Map
    {

        public string Name { get; set; }
        public Row[] rows;

        public Map()
        {}

        public void Serialize(String path, Map map)
        {

            System.Xml.Serialization.XmlSerializer ax = new System.Xml.Serialization.XmlSerializer(typeof(Map));
            StreamWriter writer = new StreamWriter(path);
            ax.Serialize(writer, map);
            writer.Close();
        }

    }
}
